package com.taotao.portal.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.taotao.common.pojo.TaotaoResult;
import com.taotao.portal.pojo.CartItem;

public interface CartService {
	
	List<CartItem> getCart(HttpServletRequest request);
	
	TaotaoResult updataCartItem(Long id,Integer num,HttpServletRequest request, HttpServletResponse response) 
			throws Exception;

	TaotaoResult addCartItem(Long id, Integer num, HttpServletRequest request, HttpServletResponse response)
			throws Exception;

	TaotaoResult delCartItem(Long id, HttpServletRequest request, HttpServletResponse response);
	
	TaotaoResult clearCart(HttpServletRequest request, HttpServletResponse response);
}
